import { createApp } from 'vue';
import ElementPlus from 'element-plus';
import App from '@/app.vue';
import router from '@/router';
import store from '@/store';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import './style.scss';
import 'element-plus/dist/index.css';
import 'katex/dist/katex.min.css';

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(router);
app.use(store);

app.use(ElementPlus, { locale: zhCn });
app.mount('#app');
